package com.ruoyi.cat.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 抽到的卡记录对象 cat_prize_draw
 * 
 * @author ruoyi
 * @date 2024-12-30
 */
public class CatPrizeDraw extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public CatPrizeDraw(){
        super();
    }

    public CatPrizeDraw(Long id, Long userId, Long chancesId, Long articleId) {
        this.id = id;
        this.userId = userId;
        this.chancesId = chancesId;
        this.articleId = articleId;
    }

    /** $column.columnComment */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 抽奖表Id */
    @Excel(name = "抽奖表Id")
    private Long chancesId;

    /** 文章任务id */
    @Excel(name = "文章任务id")
    private Long articleId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setChancesId(Long chancesId) 
    {
        this.chancesId = chancesId;
    }

    public Long getChancesId() 
    {
        return chancesId;
    }
    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("chancesId", getChancesId())
            .append("articleId", getArticleId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
